<?php
/**
 * Created by PhpStorm.
 * Adminuser: Administrator
 * Date: 2019/2/12 0012
 * Time: 下午 5:55
 */

namespace app\common;
class Test
{
    private  $name;
    public function __construct($name="王爸爸！！！")
    {
        $this->name=$name;
    }
    public function getName(){
         return '方法是：'.__METHOD__.'属性是：'.$this->name;

     }
     public function setName($name){
         $this->name=$name;
     }

}